package symanticModel;
/**
 * 
 * @author Savva
 *
 */
public class Consts extends AbstractIdentificator {
	private Number value;
	private Type type;
	public Consts() {
		super();
	}

	public Number getValue() {
		return value;
	}

	public void setValue(Number value) {
		this.value = value;
	}
	@Override
	public Type getType() {
		return type;
	}
	@Override
	public void setType(Type type) {
		this.type = type;
	}
	@Override
	public String toString() {
		return new String("ConstId " + getId() + " Scope " + getScope() + " type " + getType() + " value " + getValue());
	}
	@Override
	public boolean equals(Object obj) {
		if(!(obj instanceof Consts))
			return false;
		Consts tmp = (Consts) obj;
		if(!getValue().equals(tmp.getValue()))
			return false;
		if(!getType().equals(tmp.getType()))
			return false;
		return true;
	}
}
